import { getlink } from "@/api/getapi.js"
export let flower = {
    state: {
        arr: []
    },
    mutations: {
        hot(state, payload) {
            state.arr = payload
        }
    },
    actions: {
        axiosget(context) {
            getlink("/demo/hot").then((ok) => {
                // this.arr = ok.data.hotflower.flower
                // console.log(ok);
                context.commit("hot", ok.data.hotflower.flower)
                    // console.log(ok)

            })
        }
    },
    getters: {}
}